import request from '@/utils/request'

// 查询采购订单列表
export function listSysYongyouCgdd(query) {
  return request({
    url: '/system/yycgdd/list',
    method: 'get',
    params: query
  })
}

// 查询采购订单详细
export function getSysYongyouCgdd(vouchdate) {
  return request({
    url: '/system/yycgdd/' + vouchdate,
    method: 'get'
  })
}

// 新增采购订单
export function addSysYongyouCgdd(data) {
  return request({
    url: '/system/yycgdd',
    method: 'post',
    data: data
  })
}

// 修改采购订单
export function updateSysYongyouCgdd(data) {
  return request({
    url: '/system/yycgdd',
    method: 'put',
    data: data
  })
}

// 删除采购订单
export function delSysYongyouCgdd(vouchdate) {
  return request({
    url: '/system/yycgdd/' + vouchdate,
    method: 'delete'
  })
}
